package org.jaaksi.demo.ptr.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import org.jaaksi.demo.ptr.R;
import org.jaaksi.demo.ptr.bean.DataInfo;

/**
 * Created by Fcy on 2016/3/15.<br/>
 */
public class MyAdapter extends BaseListAdapter<DataInfo> {
  public MyAdapter(Context context) {
    super(context);
  }

  @Override public View getView(int position, View convertView, ViewGroup parent) {
    View view = mInflater.inflate(R.layout.item_list, parent, false);
    TextView textView = (TextView) view.findViewById(R.id.tv_content);
    textView.setText(getItem(position).content);
    return view;
  }
}
